package van.planifolia.dynamicproxy;

/**
 * Created by Intellij IDEA<br>
 *
 * @author Planifolia.Van
 * @version 1.0
 * @date 2022/11/9 17:34
 */
public interface Computer {
    int add(int a, int b);

    int reduce(int a, int b);

    int multiply(int a, int b);

    int divide(int a, int b);
}

class ComputerImpl implements van.planifolia.dynamicproxy.Computer {
    @Override
    public int add(int a, int b) {
        return a + b;
    }

    @Override
    public int reduce(int a, int b) {
        return a - b;
    }

    @Override
    public int multiply(int a, int b) {
        return a * b;
    }

    @Override
    public int divide(int a, int b) {
        return a / b;
    }
}
